package com.object_;

public class Equals01 {
    public static void main(String[] args) {
        A a = new A();
        A b = a;
        A c = b;
        System.out.println(a == b);
        System.out.println(b == c);
        System.out.println(a == c);
        B d = c;

        System.out.println(a == d);
        "hello".equals("abc");
        Object h;
    }

}
class A extends B{}
class B {}